import { post } from '@/utils/request'

export default {
  // Post management
  getPostPage: query => post('/api/forum/post/page', query),
  createPost: query => post('/api/forum/post/create', query),
  deletePost: id => post(`/api/forum/post/delete/${id}`),

  // Reply management
  getReplyPage: query => post('/api/forum/reply/page', query),
  createReply: query => post('/api/forum/reply/create', query),
  deleteReply: id => post(`/api/forum/reply/delete/${id}`)
}
